-- _OPTIONS

-- _ACTION

-- pfm=windows
newoption {
	trigger = "pfm",
	value   = "dest platform",
	description = "Set the dest platform",
	allowed = {
	  { "ios", "ios" },
	  { "android",  "android" },
	  { "mac",  "macosx" },
	  { "windows",  "windows" },
	  { "linux",  "linux" }
	}
}

local pfm=_OPTIONS["pfm"] or ""


--判断编译的目标平台 is_pfm("windows|ios")
function is_pfm(arg)
	if string.find(arg, pfm) then
		return true
	else
		return false
	end	
end


if is_pfm("android") then
	require "premake/android/androidmk"
	
    ndkabi "all"
    ndkplatform "android-12"
	ndkstl "gnustl_static"
	ndktoolchainversion "4.8"
end




